// Copyright (c) 2025 Huawei Technologies Co., Ltd.
// openUBMC is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
//         http://license.coscl.org.cn/MulanPSL2
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
// See the Mulan PSL v2 for more details.
//
// Description: 实现kvm客户端认证提供删除会话的能力
#pragma once

#include "ClientBaseHttp.hpp"

class DeleteSession : public ClientBaseHttp {
public:
    explicit DeleteSession();
    ~DeleteSession() override;

    // 取得请求体body
    void GetReqBody(boost::string_view userName, const char* passWord);
    // 删除会话，在调用该函数前，需要先调用SetUri方法，该方法在基类实现
    bool DeleteSessionFromWeb(boost::string_view host, boost::string_view port, boost::string_view userName,
        const char* passWord);
};
